aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntNotEqualTests]/[method:canGenerateCodeForIntNotEqual(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
diff options
context:
space:
mode:
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntNotEqualTests]/[method:canGenerateCodeForIntNotEqual(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntNotEqualTests]/[method:canGenerateCodeForIntNotEqual(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected28
1 files changed, 7 insertions, 21 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntNotEqualTests]/[method:canGenerateCodeForIntNotEqual(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntNotEqualTests]/[method:canGenerateCodeForIntNotEqual(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
index c935f1c2..c9d0f655 100644
--- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntNotEqualTests]/[method:canGenerateCodeForIntNotEqual(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
+++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntNotEqualTests]/[method:canGenerateCodeForIntNotEqual(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
@@ -1,34 +1,20 @@
Compilation unit elements:
+(
+ function-decl
+ "shed__runtime__int_not_equal"
+ params=((param "left" int) (param "right" int))
+ return-type=bool
+)
Locals:
* (val "binaryOpResult__0" int)
* (val "tmp__0" int)
- * (val "intPointer__0" data-ptr)
- * (val "intBinaryOpLeftValue__0" int)
- * (val "intPointer__1" data-ptr)
- * (val "intBinaryOpLeftValue__1" int)
Instructions:
(
- (int-to-data-ptr (local "intPointer__0") (local "b"))
- (
- memory-load
- (local "intBinaryOpLeftValue__0")
- pointer=(local "intPointer__0")
- layout=(struct (int))
- offset=(0)
- )
- (int-to-data-ptr (local "intPointer__1") (local "c"))
- (
- memory-load
- (local "intBinaryOpLeftValue__1")
- pointer=(local "intPointer__1")
- layout=(struct (int))
- offset=(0)
- )
- (int-ne (local "tmp__0") (local "intBinaryOpLeftValue__0") (local "intBinaryOpLeftValue__1"))
+ (call (local "tmp__0") "shed__runtime__int_not_equal" ((local "b") (local "c")))
(bool-to-int (local "binaryOpResult__0") (local "tmp__0"))
)